package com.zty.xiaomi.server.Service.Service;

import com.zty.xiaomi.server.Entity.Service.Service;
import com.zty.xiaomi.server.Mapper.ServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.IOException;
import java.util.List;
@org.springframework.stereotype.Service
public class ServiceServiceImp implements ServiceService{

    @Autowired
    private ServiceMapper serviceMapper;

    @Override
    public List<Service> getAllService() throws IOException {
        List<Service> list = serviceMapper.getAllService();
        return list;
    }

    @Override
    public Service getServiceByServiceId(int service_id) throws IOException {
        return serviceMapper.getServiceByServiceId(service_id);
    }
}
